package com.silence.gmall.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author silence
 * @Email 792245022@qq.com
 * @Date 2025-01-21 00:00
 * @Description MinIO 配置属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "minio")
public class MinioProperties {
    
    /**
     * MinIO 服务地址
     */
    private String endpoint;
    
    /**
     * 访问密钥
     */
    private String accessKey;
    
    /**
     * 密钥
     */
    private String secretKey;
    
    /**
     * 默认存储桶名称
     */
    private String bucketName;
    
    /**
     * 文件访问地址前缀
     */
    private String fileHost;

}